<% if @user %>

<%=error_messages_for :comment%>
<%=start_form_tag :action => "create", :id => @story.id%>
<p>
  <label for="comment_body">Body</label><br />
  <%=text_area "comment", "body"%>
</p>
<%=submit_tag "post your comment"%>
<%=end_form_tag%>

<% else %>
<p>You need to <%=link_to "log in", :controller => "user", :action => "login", :return_to => request.request_uri%> to post comments.</p>
<% end %>